﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using Marking.Dashboard.Infrastructures;

namespace Marking.Dashboard.ViewModels.Sales
{
    /// <summary>
    /// 销售信息。
    /// </summary>
    public class SalesInfo
    {
        /// <summary>
        /// 统计起始日期。
        /// </summary>
        public DateTime StartDate { get; set; }

        /// <summary>
        /// 统计截止日期。
        /// </summary>
        public DateTime EndDate { get; set; }

        /// <summary>
        /// 销售总数或总金额。
        /// </summary>
        public Decimal Quantity { get; set; }

        /// <summary>
        /// 周期类型。
        /// </summary>
        public string CycleType { get; set; }

        /// <summary>
        /// 显示在X轴的日期。
        /// </summary>
        public string DisplayDateString
        {
            get
            {
                return CycleTypeHelper.GetDisplayDateString(this.CycleType, this.StartDate);
            }
        }

        public object ExtraInfos { get; set; }
    }
}
